<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/include/taglibs.jsp"%>
<pg:pager maxIndexPages="${pages}" items="${sum}" maxPageItems="${count}" url="${url}"
	export="offset,currentPageNumber=pageNumber">
	<div class="pager"><pg:index>
		<pg:first>
			<a id="indexpage" href="${pageUrl}${params}">返回首页</A>
		</pg:first>
		<pg:prev>
			<a id="lastpage" href="${pageUrl}${params}">上一页</a>
		</pg:prev>
		<pg:pages>
			<c:if test="${pageNumber == currentPageNumber}">
				<span id="currentpage">${pageNumber}</span>
			</c:if>
			<c:if test="${pageNumber != currentPageNumber}">
				<a class="page" href="${pageUrl}${params}">${pageNumber}</a>
			</c:if>
		</pg:pages>
		<pg:next>
			<c:if test="${currentPageNumber != pageNumber && pageNumber > pages}">
				<a id="endpage" href="${pageUrl}${params}">...${pageNumber}</a>
			</c:if>
			<a id="nextpage" href="${pageUrl}${params}">下一页</a>
		</pg:next>
		<pg:last>
		</pg:last>
	</pg:index></div>
</pg:pager>
